﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="module.ascx.cs" Inherits="ExtraClub.Web.Forms.club.module" %>
<script type="text/javascript">
    (function() {
        function init() {
            BC = [{
                type: 'submit', value: '<%=UIText["submit-label"] %>'
            },{
                type: 'button', value: '<%=UIText["cancel-label"] %>',
                onClick: function(e) {
                   form.Cancel.run(e, this);
                }
            }];
            var WS = <%=WS %>;
            var FC = <%=SetFields() %>;
            var options = {command: '<%=CurrentCommand.ToString() %>',return_url: '<%=WebUtils.SetCommandUrl(ECommand.None) %>'}
           
            var form = new Form(WS, FC, BC, options, "form-container");
        }
        $domready(init);
    })();
</script>